from utils.mysql_util import db
from utils.read import read_yaml


def delete_user(mobile):
    db.execute_sql(f"delete from users_userprofile where mobile={mobile}")

def delete_code(mobile):
    db.execute_sql(f"delete from users_verifycode where mobile={mobile}")

if __name__ == '__main__':

    delete_user(read_yaml()["register_ok"]['mobile'])
    delete_code(read_yaml()["register_ok"]['mobile'])